Base Framework
Classes | Public Member Functions | Public Attributes | List of all members
ObjectModel::Array Class Reference

#include <base/objectmodel/ObjectModel.h>

Inherits ObjectModel::Value.

Classes

class  Element
 

Public Member Functions

virtual Type getType () const noexcept override
 
MemorySize getSize () const noexcept
 
bool isEmpty () const noexcept
 
Reference< ValuegetAt (MemorySize index) const
 
void setAt (MemorySize index, const Reference< Value > &value)
 
void append (const Reference< Value > &value)
 
Element operator[] (MemorySize index)
 
base::Array< Reference< Value > >::ReadIterator begin () const
 
base::Array< Reference< Value > >::ReadIterator end () const
 
Arrayoperator= (const base::Array< bool > &values)
 
Arrayoperator= (const base::Array< int > &values)
 
Arrayoperator= (const base::Array< int64 > &values)
 
Arrayoperator= (const base::Array< double > &values)
 
Arrayoperator= (const base::Array< base::String > &values)
 
template<class TYPE >
base::Array< TYPE > getAs () const
 
template<>
base::Array< bool > getAs () const
 
- Public Member Functions inherited from ObjectModel::Value
base::String toString (unsigned int flags=DEFAULT_FORMATTING) const noexcept
 
base::String toStringNoFormatting () const noexcept
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Public Attributes

base::Array< Reference< Value > > values
 

Additional Inherited Members

- Public Types inherited from ObjectModel::Value
enum  Type {
  TYPE_VOID, TYPE_BOOLEAN, TYPE_INTEGER, TYPE_FLOAT,
  TYPE_STRING, TYPE_BINARY, TYPE_ARRAY, TYPE_OBJECT,
  TYPE_COMMENT
}
 

Detailed Description

Array.

Member Function Documentation

◆ append()

void ObjectModel::Array::append ( const Reference< Value > &  value)

Sets the value at the given index.

◆ getAt()

Reference<Value> ObjectModel::Array::getAt ( MemorySize  index) const

Returns the value at the given index.

◆ getSize()

MemorySize ObjectModel::Array::getSize ( ) const
noexcept

Returns the size of the array.

◆ getType()

virtual Type ObjectModel::Array::getType ( ) const
inlineoverridevirtualnoexcept

Returns the type.

Implements ObjectModel::Value.

◆ isEmpty()

bool ObjectModel::Array::isEmpty ( ) const
inlinenoexcept

Returns the size of the array.

◆ operator[]()

Element ObjectModel::Array::operator[] ( MemorySize  index)
inline

Returns the value at the given index.

◆ setAt()

void ObjectModel::Array::setAt ( MemorySize  index,
const Reference< Value > &  value 
)

Sets the value at the given index.