TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Nice::ActorMemFn< Type, TypeClass, TypeMemFn > Class Template Reference

Nice::ActorMemFn<Nice::LogStream, void (Nice::LogStream::*)(uint)>(Nice::StdOut, & Nice::LogStream::setLogLevel) More...

#include <ActorMemFn.hh>

Inheritance diagram for Nice::ActorMemFn< Type, TypeClass, TypeMemFn >:
Inheritance graph
Collaboration diagram for Nice::ActorMemFn< Type, TypeClass, TypeMemFn >:
Collaboration graph

Public Member Functions

 ActorMemFn ()
 
 ActorMemFn (TypeClass *_object, TypeMemFn _member, const std::string &_id="ActorMemFn")
 
virtual ~ActorMemFn ()
 
virtual void init (const PropertyFooPtr &_foo, PropertyAttrMap &_attrs)
 
virtual std::string name () const
 return actor name. More...
 
virtual std::string toString () const
 Cast the PropertyActor to a string. More...
 
virtual Nice::CompletionState set (const Nice::Date &_date, const Nice::Any &_value)
 
virtual ActorMemFn< Type, TypeClass, TypeMemFn > * clone ()
 
 ActorMemFn ()
 
 ActorMemFn (TypeClass *_object, TypeMemFn _member, const std::string &_id="ActorMemFn")
 
virtual ~ActorMemFn ()
 
virtual void init (const PropertyFooPtr &_foo, PropertyAttrMap &_attrs)
 
virtual std::string name () const
 return actor name. More...
 
virtual std::string toString () const
 Cast the PropertyActor to a string. More...
 
virtual Nice::CompletionState set (const Nice::Date &_date, const Nice::Any &_value)
 
virtual ActorMemFn< Type, TypeClass, TypeMemFn > * clone ()
 
- Public Member Functions inherited from Nice::PropertyActor
 PropertyActor ()
 Constructor. More...
 
virtual ~PropertyActor ()
 Destructor. More...
 
 PropertyActor ()
 Constructor. More...
 
virtual ~PropertyActor ()
 Destructor. More...
 

Public Attributes

TypeClass * m_object
 
TypeMemFn m_member
 
std::string m_name
 
PropertyFoom_foo
 

Detailed Description

template<typename Type, typename TypeClass, typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
class Nice::ActorMemFn< Type, TypeClass, TypeMemFn >

Nice::ActorMemFn<Nice::LogStream, void (Nice::LogStream::*)(uint)>(Nice::StdOut, & Nice::LogStream::setLogLevel)

Author
Florian Briegel
Version
11.02.04
Date
2012-08-10 11:04:58 AM Member function Actor. At compile time:

The following code snippet illustrates using the member function actor:

   #include <Nice/Property/ActorMemFn.h>

   Nice::JointPtr tree;
   tree->setAtNode("LEVEL", 10);
   tree->get("LEVEL")->apply(
      new Nice::ActorMemFn<Nice::LogStream>(Nice::StdOut, & Nice::LogStream::setLogLevel));
Todo:
Document more!
Author
Florian Briegel
Version
11.02.04
Date
2012-08-10 11:04:58 AM Member function Actor. At compile time:

The following code snippet illustrates using the member function actor:

   #include <Nice/Property/ActorMemFn.h>

   Nice::JointPtr tree;
   tree->setAtNode("LEVEL", 10);
   tree->get("LEVEL")->apply(
      new Nice::ActorMemFn<Nice::LogStream>(Nice::StdOut, & Nice::LogStream::setLogLevel));
Todo:
Document more!

Constructor & Destructor Documentation

◆ ActorMemFn() [1/4]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::ActorMemFn ( )
inline
Parameters

◆ ActorMemFn() [2/4]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::ActorMemFn ( TypeClass *  _object,
TypeMemFn  _member,
const std::string &  _id = "ActorMemFn< Type, TypeClass, TypeMemFn >" 
)
inline
Parameters

◆ ~ActorMemFn() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::~ActorMemFn ( )
inlinevirtual
Parameters

◆ ActorMemFn() [3/4]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::ActorMemFn ( )
inline
Parameters

◆ ActorMemFn() [4/4]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::ActorMemFn ( TypeClass *  _object,
TypeMemFn  _member,
const std::string &  _id = "ActorMemFn< Type, TypeClass, TypeMemFn >" 
)
inline
Parameters

◆ ~ActorMemFn() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::~ActorMemFn ( )
inlinevirtual
Parameters

Member Function Documentation

◆ clone() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual ActorMemFn<Type, TypeClass, TypeMemFn>* Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::clone ( )
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ clone() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual ActorMemFn<Type, TypeClass, TypeMemFn>* Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::clone ( )
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ init() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual void Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::init ( const PropertyFooPtr _foo,
PropertyAttrMap _attrs 
)
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ init() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual void Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::init ( const PropertyFooPtr _foo,
PropertyAttrMap _attrs 
)
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ name() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual std::string Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::name ( ) const
inlinevirtual

return actor name.

Returns
Stringified Property.

Implements Nice::PropertyActor.

◆ name() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual std::string Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::name ( ) const
inlinevirtual

return actor name.

Returns
Stringified Property.

Implements Nice::PropertyActor.

◆ set() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual Nice::CompletionState Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::set ( const Nice::Date _date,
const Nice::Any _value 
)
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ set() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual Nice::CompletionState Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::set ( const Nice::Date _date,
const Nice::Any _value 
)
inlinevirtual
Parameters

Implements Nice::PropertyActor.

◆ toString() [1/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual std::string Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::toString ( ) const
inlinevirtual

Cast the PropertyActor to a string.

Returns
Stringified Property.

Implements Nice::PropertyActor.

◆ toString() [2/2]

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
virtual std::string Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::toString ( ) const
inlinevirtual

Cast the PropertyActor to a string.

Returns
Stringified Property.

Implements Nice::PropertyActor.

Member Data Documentation

◆ m_foo

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
PropertyFoo * Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::m_foo

◆ m_member

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
TypeMemFn Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::m_member

◆ m_name

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
std::string Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::m_name

◆ m_object

template<typename Type , typename TypeClass , typename TypeMemFn = Nice::CompletionState ( TypeClass::* ) (const Type &, PropertyFoo * )>
TypeClass * Nice::ActorMemFn< Type, TypeClass, TypeMemFn >::m_object

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