stencet
v0.1.16
Build C++ web server modules that allow easy routing and deployment.
|
Public Member Functions | |
ViewModel_ (const T &_t) | |
template<typename S > | |
ViewModel * | operator() (const Field_< T, S > &field) |
virtual bool | hasValue (const std::string &name) |
virtual ViewModel * | at (const std::string &name) |
Public Member Functions inherited from stencet::ViewModel | |
virtual bool | isConvertible (Type t) const |
virtual Type | getType () const |
virtual void | asString (std::string &str) const |
virtual double | asDouble () const |
virtual bool | asBool () const |
virtual int | asInt () const |
virtual size_t | size () const |
virtual ViewModel * | at (size_t) |
Public Attributes | |
const T & | t |
std::map< std::string, ViewModel * > | map |
Public Attributes inherited from stencet::ViewModel | |
bool | managed = true |
Additional Inherited Members | |
Public Types inherited from stencet::ViewModel | |
enum | Type { Null = -1, Object = 0, List = 1, String = 2, Double = 3, Int = 4, Bool = 5 } |