OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::Property< T > Class Template Reference

Property instance with passthrough calls to a given object. More...

#include <OgreProperty.h>

+ Inheritance diagram for Ogre::Property< T >:

Public Types

typedef boost::function< T(void) > getter_func
 
typedef boost::function< void(T) > setter_func
 
typedef T value_type
 

Public Member Functions

 Property (PropertyDef *def, getter_func getter, setter_func setter)
 Construct a property which is able to directly call a given getter and setter on a specific object instance, via functors.
 
virtual T get () const
 
const String & getDescription () const
 Get the description of the property.
 
const String & getName () const
 Get the name of the property.
 
PropertyType getType () const
 Get the type of the property.
 
Ogre::Any getValue () const
 Return the current value as an Any.
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
void * operator new (size_t sz, void *ptr)
 placement operator new
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
virtual void set (T val)
 Set the property value.
 

Detailed Description

template<typename T>
class Ogre::Property< T >

Property instance with passthrough calls to a given object.

Member Typedef Documentation

◆ getter_func

template<typename T >
typedef boost::function< T (void) > Ogre::Property< T >::getter_func

◆ setter_func

template<typename T >
typedef boost::function< void (T) > Ogre::Property< T >::setter_func

◆ value_type

template<typename T >
typedef T Ogre::Property< T >::value_type

Constructor & Destructor Documentation

◆ Property()

template<typename T >
Ogre::Property< T >::Property ( PropertyDef *  def,
getter_func  getter,
setter_func  setter 
)
inline

Construct a property which is able to directly call a given getter and setter on a specific object instance, via functors.

Member Function Documentation

◆ get()

◆ getDescription()

const String & Ogre::PropertyBase::getDescription ( ) const
inlineinherited

Get the description of the property.

◆ getName()

const String & Ogre::PropertyBase::getName ( ) const
inlineinherited

Get the name of the property.

Referenced by Ogre::RTShader::CompareUniformByName::operator()().

◆ getType()

PropertyType Ogre::PropertyBase::getType ( ) const
inlineinherited

◆ getValue()

template<typename T >
Ogre::Any Ogre::Property< T >::getValue ( ) const
inlinevirtual

Return the current value as an Any.

Implements Ogre::PropertyBase.

References Ogre::Property< T >::get().

Referenced by Ogre::Controller< T >::update().

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

◆ set()

template<typename T >
virtual void Ogre::Property< T >::set ( T  val)
inlinevirtual

Set the property value.

Referenced by Ogre::Resource::setToLoaded().


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