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

#include <Property.h>

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

Public Member Functions

template<typename T , std::enable_if_t< std::is_integral_v< T >, int > = 0>
 Property (const T &arg)
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
 Property (const T &arg)
 
 Property (PropertyMap *map)
 
template<size_t N>
 Property (const char(&s)[N])
 
 Property (const char *s)
 
 Property (std::string_view s)
 
 Property (const std::string &s)
 
bool is_null () const
 
bool is_bool () const
 
bool is_number () const
 
bool is_integer () const
 
bool is_vector2 () const
 
bool is_vector3 () const
 
bool is_color () const
 
bool is_quat () const
 
bool is_string () const
 
bool is_map () const
 
bool get_bool (bool def=false) const
 
double get_number (double def=0.0) const
 
int64_t get_integer (int64_t def=0) const
 
vector2d get_vector2 (vector2d def={}) const
 
vector3d get_vector3 (vector3d def={}) const
 
Color get_color (Color def={}) const
 
Quaternionf get_quat (Quaternionf def={}) const
 
StringName get_string (std::string_view def={}) const
 
PropertyMapget_map (PropertyMap *def={}) const
 
template<typename T , std::enable_if_t< std::is_integral_v< T >, int > = 0>
 operator T () const
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
 operator T () const
 
 operator bool () const
 
 operator double () const
 
 operator int64_t () const
 
 operator vector2d () const
 
 operator vector3d () const
 
 operator Color () const
 
 operator Quaternionf () const
 
 operator StringName () const
 
 operator PropertyMap * () const
 

Constructor & Destructor Documentation

◆ Property() [1/7]

template<typename T , std::enable_if_t< std::is_integral_v< T >, int > = 0>
Property::Property ( const T &  arg)
inline

◆ Property() [2/7]

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
Property::Property ( const T &  arg)
inline

◆ Property() [3/7]

Property::Property ( PropertyMap map)
inline

◆ Property() [4/7]

template<size_t N>
Property::Property ( const char(&)  s[N])
inline

◆ Property() [5/7]

Property::Property ( const char *  s)
inline

◆ Property() [6/7]

Property::Property ( std::string_view  s)
inline

◆ Property() [7/7]

Property::Property ( const std::string &  s)
inline

Member Function Documentation

◆ get_bool()

bool Property::get_bool ( bool  def = false) const
inline

◆ get_color()

Color Property::get_color ( Color  def = {}) const
inline

◆ get_integer()

int64_t Property::get_integer ( int64_t  def = 0) const
inline

◆ get_map()

PropertyMap * Property::get_map ( PropertyMap def = {}) const
inline

◆ get_number()

double Property::get_number ( double  def = 0.0) const
inline

◆ get_quat()

Quaternionf Property::get_quat ( Quaternionf  def = {}) const
inline

◆ get_string()

StringName Property::get_string ( std::string_view  def = {}) const
inline

◆ get_vector2()

vector2d Property::get_vector2 ( vector2d  def = {}) const
inline

◆ get_vector3()

vector3d Property::get_vector3 ( vector3d  def = {}) const
inline

◆ is_bool()

bool Property::is_bool ( ) const
inline

◆ is_color()

bool Property::is_color ( ) const
inline

◆ is_integer()

bool Property::is_integer ( ) const
inline

◆ is_map()

bool Property::is_map ( ) const
inline

◆ is_null()

bool Property::is_null ( ) const
inline

◆ is_number()

bool Property::is_number ( ) const
inline

◆ is_quat()

bool Property::is_quat ( ) const
inline

◆ is_string()

bool Property::is_string ( ) const
inline

◆ is_vector2()

bool Property::is_vector2 ( ) const
inline

◆ is_vector3()

bool Property::is_vector3 ( ) const
inline

◆ operator bool()

Property::operator bool ( ) const
inline
Here is the call graph for this function:

◆ operator Color()

Property::operator Color ( ) const
inline
Here is the call graph for this function:

◆ operator double()

Property::operator double ( ) const
inline
Here is the call graph for this function:

◆ operator int64_t()

Property::operator int64_t ( ) const
inline
Here is the call graph for this function:

◆ operator PropertyMap *()

Property::operator PropertyMap * ( ) const
inline
Here is the call graph for this function:

◆ operator Quaternionf()

Property::operator Quaternionf ( ) const
inline
Here is the call graph for this function:

◆ operator StringName()

Property::operator StringName ( ) const
inline
Here is the call graph for this function:

◆ operator T() [1/2]

template<typename T , std::enable_if_t< std::is_integral_v< T >, int > = 0>
Property::operator T ( ) const
inline
Here is the call graph for this function:

◆ operator T() [2/2]

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
Property::operator T ( ) const
inline
Here is the call graph for this function:

◆ operator vector2d()

Property::operator vector2d ( ) const
inline
Here is the call graph for this function:

◆ operator vector3d()

Property::operator vector3d ( ) const
inline
Here is the call graph for this function:

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