dxjson 1.0
JSON library for C++
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dx::Array Class Reference
Inheritance diagram for dx::Array:
dx::Value

Public Member Functions

 Array (const Array &arr)
 
template<typename T >
 Array (const std::vector< T > &vec)
 
const JSONjsonAtIndex (size_t i) const
 
void write (std::ostream &out) const
 
JSONValue type () const
 
ValuereturnMyNewCopy () const
 
void read (std::istream &in)
 
void push_back (const JSON &j)
 
void erase (const size_t &i)
 
bool isEqual (const Value *other) const
 
bool operator== (const Array &other) const
 
bool operator!= (const Array &other) const
 

Public Attributes

std::vector< JSONval
 

Detailed Description

Definition at line 699 of file dxjson.h.

Constructor & Destructor Documentation

◆ Array() [1/3]

dx::Array::Array ( )
inline

Definition at line 703 of file dxjson.h.

◆ Array() [2/3]

dx::Array::Array ( const Array arr)
inline

Definition at line 704 of file dxjson.h.

◆ Array() [3/3]

template<typename T >
dx::Array::Array ( const std::vector< T > &  vec)
inline

Definition at line 707 of file dxjson.h.

Member Function Documentation

◆ erase()

void Array::erase ( const size_t &  i)

Definition at line 817 of file dxjson.cpp.

◆ isEqual()

bool Array::isEqual ( const Value other) const
virtual

Implements dx::Value.

Definition at line 870 of file dxjson.cpp.

◆ jsonAtIndex()

const JSON & Array::jsonAtIndex ( size_t  i) const

Definition at line 439 of file dxjson.cpp.

◆ operator!=()

bool dx::Array::operator!= ( const Array other) const
inline

Definition at line 725 of file dxjson.h.

◆ operator==()

bool dx::Array::operator== ( const Array other) const
inline

Definition at line 724 of file dxjson.h.

◆ push_back()

void dx::Array::push_back ( const JSON j)
inline

Definition at line 719 of file dxjson.h.

◆ read()

void Array::read ( std::istream &  in)
virtual

Implements dx::Value.

Definition at line 777 of file dxjson.cpp.

◆ returnMyNewCopy()

Value * dx::Array::returnMyNewCopy ( ) const
inlinevirtual

Implements dx::Value.

Definition at line 717 of file dxjson.h.

◆ type()

JSONValue dx::Array::type ( ) const
inlinevirtual

Implements dx::Value.

Definition at line 716 of file dxjson.h.

◆ write()

void Array::write ( std::ostream &  out) const
virtual

Implements dx::Value.

Definition at line 428 of file dxjson.cpp.

Member Data Documentation

◆ val

std::vector<JSON> dx::Array::val

Definition at line 701 of file dxjson.h.


The documentation for this class was generated from the following files: