Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
PropertyMap Class Reference

#include <Property.h>

Inheritance diagram for PropertyMap:
Inheritance graph
[legend]
Collaboration diagram for PropertyMap:
Collaboration graph
[legend]

Classes

struct  iterator
 

Public Types

using value_type = std::pair< StringName, Property >
 
using reference = const value_type &
 
using pointer = const value_type *
 

Public Member Functions

 PropertyMap ()
 
 ~PropertyMap ()
 
void SaveToJson (Json &obj)
 
void LoadFromJson (const Json &obj)
 
size_t Size () const
 
size_t Capacity () const
 
bool Empty () const
 
template<size_t N>
const PropertyGet (const char str[N]) const
 
const PropertyGet (const StringName &str) const
 
const PropertyGet (std::string_view str) const
 
void Set (const StringName &key, Property &&prop)
 
void Set (std::string_view str, Property &&prop)
 
template<typename T >
void Set (const StringName &key, const T &prop)
 
template<typename T >
void Set (std::string_view str, const T &prop)
 
void Clear ()
 
iterator begin ()
 
iterator end ()
 
iterator cbegin () const
 
iterator cend () const
 
 operator PropertyMapWrapper ()
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Member Typedef Documentation

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ PropertyMap()

PropertyMap::PropertyMap ( )

◆ ~PropertyMap()

PropertyMap::~PropertyMap ( )
Here is the call graph for this function:

Member Function Documentation

◆ begin()

iterator PropertyMap::begin ( )
inline

◆ Capacity()

size_t PropertyMap::Capacity ( ) const
inline

◆ cbegin()

iterator PropertyMap::cbegin ( ) const
inline

◆ cend()

iterator PropertyMap::cend ( ) const
inline

◆ Clear()

void PropertyMap::Clear ( )

◆ Empty()

bool PropertyMap::Empty ( ) const
inline

◆ end()

iterator PropertyMap::end ( )
inline

◆ Get() [1/3]

template<size_t N>
const Property & PropertyMap::Get ( const char  str[N]) const
inline
Here is the call graph for this function:

◆ Get() [2/3]

const Property & PropertyMap::Get ( const StringName str) const
inline
Here is the call graph for this function:

◆ Get() [3/3]

const Property & PropertyMap::Get ( std::string_view  str) const
inline
Here is the call graph for this function:

◆ LoadFromJson()

void PropertyMap::LoadFromJson ( const Json obj)
Here is the call graph for this function:

◆ operator PropertyMapWrapper()

PropertyMap::operator PropertyMapWrapper ( )
inline

◆ SaveToJson()

void PropertyMap::SaveToJson ( Json obj)

◆ Set() [1/4]

template<typename T >
void PropertyMap::Set ( const StringName key,
const T &  prop 
)
inline
Here is the call graph for this function:

◆ Set() [2/4]

void PropertyMap::Set ( const StringName key,
Property &&  prop 
)
inline
Here is the call graph for this function:

◆ Set() [3/4]

template<typename T >
void PropertyMap::Set ( std::string_view  str,
const T &  prop 
)
inline
Here is the call graph for this function:

◆ Set() [4/4]

void PropertyMap::Set ( std::string_view  str,
Property &&  prop 
)
inline
Here is the call graph for this function:

◆ Size()

size_t PropertyMap::Size ( ) const
inline

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