Go to the documentation of this file.00001
00002
00003
00004
00005
00006 ACE_INLINE
00007 ETCL_Literal_Constraint::ETCL_Literal_Constraint (void)
00008 : type_ (ACE_ETCL_UNKNOWN)
00009 {
00010 }
00011
00012
00013
00014 ACE_INLINE
00015 ETCL_Identifier::ETCL_Identifier (const char *value)
00016 : string_ (value)
00017 {
00018 }
00019
00020 ACE_INLINE const char *
00021 ETCL_Identifier::value (void) const
00022 {
00023 return this->string_.c_str ();
00024 }
00025
00026
00027
00028
00029 ACE_INLINE
00030 ETCL_Union_Value::ETCL_Union_Value (void)
00031 {}
00032
00033 ACE_INLINE
00034 ETCL_Union_Value::ETCL_Union_Value (int sign,
00035 ETCL_Constraint *integer)
00036 : sign_ (sign),
00037 string_ (0)
00038 {
00039 this->integer_ =
00040 dynamic_cast<ETCL_Literal_Constraint*> (integer);
00041 }
00042
00043 ACE_INLINE
00044 ETCL_Union_Value::ETCL_Union_Value (ETCL_Constraint *string)
00045 : sign_ (0),
00046 integer_ (0)
00047 {
00048 this->string_ =
00049 dynamic_cast<ETCL_Literal_Constraint*> (string);
00050 }
00051
00052 ACE_INLINE int
00053 ETCL_Union_Value::sign (void) const
00054 {
00055 return this->sign_;
00056 }
00057
00058 ACE_INLINE ETCL_Literal_Constraint *
00059 ETCL_Union_Value::integer (void) const
00060 {
00061 return this->integer_;
00062 }
00063
00064 ACE_INLINE ETCL_Literal_Constraint *
00065 ETCL_Union_Value::string (void) const
00066 {
00067 return this->string_;
00068 }
00069
00070
00071
00072 ACE_INLINE
00073 ETCL_Union_Pos::ETCL_Union_Pos (void)
00074 {}
00075
00076 ACE_INLINE
00077 ETCL_Union_Pos::ETCL_Union_Pos (ETCL_Constraint *union_value,
00078 ETCL_Constraint *component)
00079 : component_ (component)
00080 {
00081 this->union_value_ =
00082 dynamic_cast<ETCL_Union_Value*> (union_value);
00083 }
00084
00085 ACE_INLINE ETCL_Union_Value *
00086 ETCL_Union_Pos::union_value (void) const
00087 {
00088 return this->union_value_;
00089 }
00090
00091 ACE_INLINE ETCL_Constraint *
00092 ETCL_Union_Pos::component (void) const
00093 {
00094 return this->component_;
00095 }
00096
00097
00098
00099 ACE_INLINE
00100 ETCL_Component_Pos::ETCL_Component_Pos (void)
00101 {}
00102
00103 ACE_INLINE
00104 ETCL_Component_Pos::ETCL_Component_Pos (
00105 ETCL_Constraint *integer,
00106 ETCL_Constraint *component
00107 )
00108 : component_ (component)
00109 {
00110 this->integer_ =
00111 dynamic_cast<ETCL_Literal_Constraint*> (integer);
00112 }
00113
00114 ACE_INLINE ETCL_Literal_Constraint *
00115 ETCL_Component_Pos::integer (void) const
00116 {
00117 return this->integer_;
00118 }
00119
00120 ACE_INLINE ETCL_Constraint *
00121 ETCL_Component_Pos::component (void) const
00122 {
00123 return this->component_;
00124 }
00125
00126
00127
00128 ACE_INLINE
00129 ETCL_Component_Assoc::ETCL_Component_Assoc (void)
00130 {}
00131
00132 ACE_INLINE
00133 ETCL_Component_Assoc::ETCL_Component_Assoc (
00134 ETCL_Constraint *identifier,
00135 ETCL_Constraint *component
00136 )
00137 : component_ (component)
00138 {
00139 this->identifier_ =
00140 dynamic_cast<ETCL_Identifier*> (identifier);
00141 }
00142
00143 ACE_INLINE ETCL_Identifier *
00144 ETCL_Component_Assoc::identifier (void) const
00145 {
00146 return this->identifier_;
00147 }
00148
00149 ACE_INLINE ETCL_Constraint *
00150 ETCL_Component_Assoc::component (void) const
00151 {
00152 return this->component_;
00153 }
00154
00155
00156
00157 ACE_INLINE
00158 ETCL_Component_Array::ETCL_Component_Array (void)
00159 {}
00160
00161 ACE_INLINE
00162 ETCL_Component_Array::ETCL_Component_Array (
00163 ETCL_Constraint *integer,
00164 ETCL_Constraint *component
00165 )
00166 : component_ (component)
00167 {
00168 this->integer_ =
00169 dynamic_cast<ETCL_Literal_Constraint*> (integer);
00170 }
00171
00172 ACE_INLINE ETCL_Literal_Constraint *
00173 ETCL_Component_Array::integer (void) const
00174 {
00175 return this->integer_;
00176 }
00177
00178 ACE_INLINE ETCL_Constraint *
00179 ETCL_Component_Array::component (void) const
00180 {
00181 return this->component_;
00182 }
00183
00184
00185
00186 ACE_INLINE
00187 ETCL_Special::ETCL_Special (void)
00188 {}
00189
00190 ACE_INLINE
00191 ETCL_Special::ETCL_Special (int type)
00192 : type_ (type)
00193 {}
00194
00195 ACE_INLINE int
00196 ETCL_Special::type (void) const
00197 {
00198 return this->type_;
00199 }
00200
00201
00202
00203 ACE_INLINE
00204 ETCL_Component::ETCL_Component (void)
00205 {}
00206
00207 ACE_INLINE
00208 ETCL_Component::ETCL_Component (ETCL_Constraint *identifier,
00209 ETCL_Constraint *component)
00210 : component_ (component)
00211 {
00212 this->identifier_ =
00213 dynamic_cast<ETCL_Identifier*> (identifier);
00214 }
00215
00216 ACE_INLINE ETCL_Identifier *
00217 ETCL_Component::identifier (void) const
00218 {
00219 return this->identifier_;
00220 }
00221
00222 ACE_INLINE ETCL_Constraint *
00223 ETCL_Component::component (void) const
00224 {
00225 return this->component_;
00226 }
00227
00228
00229
00230 ACE_INLINE
00231 ETCL_Dot::ETCL_Dot (void)
00232 {}
00233
00234 ACE_INLINE
00235 ETCL_Dot::ETCL_Dot (ETCL_Constraint *component)
00236 : component_ (component)
00237 {
00238 }
00239
00240 ACE_INLINE ETCL_Constraint *
00241 ETCL_Dot::component (void) const
00242 {
00243 return this->component_;
00244 }
00245
00246
00247
00248 ACE_INLINE
00249 ETCL_Eval::ETCL_Eval (void)
00250 {}
00251
00252 ACE_INLINE
00253 ETCL_Eval::ETCL_Eval (ETCL_Constraint *component)
00254 : component_ (component)
00255 {
00256 }
00257
00258 ACE_INLINE ETCL_Constraint *
00259 ETCL_Eval::component (void) const
00260 {
00261 return this->component_;
00262 }
00263
00264
00265
00266 ACE_INLINE
00267 ETCL_Default::ETCL_Default (void)
00268 {}
00269
00270 ACE_INLINE
00271 ETCL_Default::ETCL_Default (ETCL_Constraint *component)
00272 : component_ (component)
00273 {
00274 }
00275
00276 ACE_INLINE ETCL_Constraint *
00277 ETCL_Default::component (void) const
00278 {
00279 return this->component_;
00280 }
00281
00282
00283
00284 ACE_INLINE
00285 ETCL_Exist::ETCL_Exist (void)
00286 {}
00287
00288 ACE_INLINE
00289 ETCL_Exist::ETCL_Exist (ETCL_Constraint *component)
00290 : component_ (component)
00291 {
00292 }
00293
00294 ACE_INLINE ETCL_Constraint *
00295 ETCL_Exist::component (void) const
00296 {
00297 return this->component_;
00298 }
00299
00300
00301
00302 ACE_INLINE
00303 ETCL_Unary_Expr::ETCL_Unary_Expr (int type,
00304 ETCL_Constraint *subexpr)
00305 : type_ (type),
00306 subexpr_ (subexpr)
00307 {}
00308
00309 ACE_INLINE int
00310 ETCL_Unary_Expr::type (void) const
00311 {
00312 return this->type_;
00313 }
00314
00315 ACE_INLINE ETCL_Constraint *
00316 ETCL_Unary_Expr::subexpr (void) const
00317 {
00318 return this->subexpr_;
00319 }
00320
00321
00322
00323 ACE_INLINE
00324 ETCL_Binary_Expr::ETCL_Binary_Expr (int type,
00325 ETCL_Constraint *lhs,
00326 ETCL_Constraint *rhs)
00327 : type_ (type),
00328 lhs_ (lhs),
00329 rhs_ (rhs)
00330 {}
00331
00332 ACE_INLINE int
00333 ETCL_Binary_Expr::type (void) const
00334 {
00335 return this->type_;
00336 }
00337
00338 ACE_INLINE ETCL_Constraint *
00339 ETCL_Binary_Expr::rhs (void) const
00340 {
00341 return this->rhs_;
00342 }
00343
00344 ACE_INLINE ETCL_Constraint *
00345 ETCL_Binary_Expr::lhs (void) const
00346 {
00347 return this->lhs_;
00348 }
00349
00350
00351
00352 ACE_INLINE
00353 ETCL_Preference::ETCL_Preference (void)
00354 {}
00355
00356 ACE_INLINE
00357 ETCL_Preference::ETCL_Preference (int type,
00358 ETCL_Constraint *subexpr)
00359 : type_ (type),
00360 subexpr_ (subexpr)
00361 {}
00362
00363 ACE_INLINE int
00364 ETCL_Preference::type (void) const
00365 {
00366 return this->type_;
00367 }
00368
00369 ACE_INLINE ETCL_Constraint *
00370 ETCL_Preference::subexpr (void) const
00371 {
00372 return this->subexpr_;
00373 }
00374
00375 ACE_INLINE bool
00376 ETCL_Literal_Constraint::operator!= (const ETCL_Literal_Constraint & rhs)
00377 {
00378 return !(*this == rhs);
00379 }
00380
00381 ACE_INLINE bool
00382 ETCL_Literal_Constraint::operator<= (const ETCL_Literal_Constraint & rhs)
00383 {
00384 return !(*this > rhs);
00385 }
00386
00387 ACE_INLINE bool
00388 ETCL_Literal_Constraint::operator>= (const ETCL_Literal_Constraint & rhs)
00389 {
00390 return !(*this < rhs);
00391 }