#include <enum.h>
Inheritance diagram for Wt::Enum< CHILD >::Var:
Public Member Functions | |
Var (int val=0) | |
Var & | operator= (int val) |
operator int () const | |
Friends | |
class | Enum< CHILD >::Var |
Definition at line 98 of file enum.h.
Definition at line 64 of file enum.h.
References Wt::Enum< CHILD >::defined, and Wt::Enum< CHILD >::VarBase::value.
Definition at line 103 of file enum.h.
References Wt::Enum< CHILD >::defined, and Wt::Enum< CHILD >::VarBase::value.
00103 { 00104 bool value_is_valid_enum = std::binary_search(defined.begin(), 00105 defined.end(), val); 00106 if (value_is_valid_enum) { 00107 VarBase::value = val; 00108 } else { 00109 assert(value_is_valid_enum); 00110 throw val; 00111 } 00112 return *this; 00113 }
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.