⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 etcl_constraint.i

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 I
字号:
// ETCL_Constraint.i,v 1.2 2000/04/02 19:22:41 coryan Exp

ACE_INLINE
TAO_ETCL_Boolean_Literal::TAO_ETCL_Boolean_Literal (int value)
  :  value_ (value)
{
}

ACE_INLINE int
TAO_ETCL_Boolean_Literal::value (void) const
{
  return this->value_;
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_Integer_Literal::TAO_ETCL_Integer_Literal (long value)
  :  value_ (value)
{
}

ACE_INLINE long
TAO_ETCL_Integer_Literal::value (void) const
{
  return this->value_;
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_Float_Literal::TAO_ETCL_Float_Literal (double value)
  :  value_ (value)
{
}

ACE_INLINE double
TAO_ETCL_Float_Literal::value (void) const
{
  return this->value_;
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_String_Literal::TAO_ETCL_String_Literal (const char *value)
  :  string_ (value)
{
}

ACE_INLINE const char *
TAO_ETCL_String_Literal::value (void) const
{
  return this->string_.c_str ();
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_Identifier::TAO_ETCL_Identifier (const char *value)
  :  string_ (value)
{
}

ACE_INLINE const char *
TAO_ETCL_Identifier::value (void) const
{
  return this->string_.c_str ();
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (int sign,
                                            TAO_ETCL_Constraint *integer)
  :  sign_ (sign),
     string_ (0)
{
  this->integer_ =
    ACE_dynamic_cast (TAO_ETCL_Integer_Literal*, integer);
}

ACE_INLINE
TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (TAO_ETCL_Constraint *string)
  :  sign_ (0),
     integer_ (0)
{
  this->string_ =
    ACE_dynamic_cast (TAO_ETCL_String_Literal*, string);
}

ACE_INLINE int
TAO_ETCL_Union_Value::sign (void) const
{
  return this->sign_;
}

ACE_INLINE TAO_ETCL_Integer_Literal *
TAO_ETCL_Union_Value::integer (void) const
{
  return this->integer_;
}

ACE_INLINE TAO_ETCL_String_Literal *
TAO_ETCL_Union_Value::string (void) const
{
  return this->string_;
}


// ****************************************************************

ACE_INLINE
TAO_ETCL_Union_Pos::TAO_ETCL_Union_Pos (TAO_ETCL_Constraint *union_value,
                                        TAO_ETCL_Constraint *component)
  :  component_ (component)
{
  this->union_value_ =
    ACE_dynamic_cast (TAO_ETCL_Union_Value*, union_value);
}
    
ACE_INLINE TAO_ETCL_Union_Value *
TAO_ETCL_Union_Pos::union_value (void) const
{
  return this->union_value_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Union_Pos::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Component_Pos::TAO_ETCL_Component_Pos (TAO_ETCL_Constraint *integer,
                                                TAO_ETCL_Constraint *component)
  :  component_ (component)
{
  this->integer_ =
    ACE_dynamic_cast (TAO_ETCL_Integer_Literal*, integer);
}

ACE_INLINE TAO_ETCL_Integer_Literal *
TAO_ETCL_Component_Pos::integer (void) const
{
  return this->integer_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Component_Pos::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Component_Assoc::TAO_ETCL_Component_Assoc (TAO_ETCL_Constraint *identifier,
                                                TAO_ETCL_Constraint *component)
  :  component_ (component)
{
  this->identifier_ =
    ACE_dynamic_cast (TAO_ETCL_Identifier*, identifier);
}

ACE_INLINE TAO_ETCL_Identifier *
TAO_ETCL_Component_Assoc::identifier (void) const
{
  return this->identifier_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Component_Assoc::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Component_Array::TAO_ETCL_Component_Array (TAO_ETCL_Constraint *integer,
                                                TAO_ETCL_Constraint *component)
  :  component_ (component)
{
  this->integer_ =
    ACE_dynamic_cast (TAO_ETCL_Integer_Literal*, integer);
}

ACE_INLINE TAO_ETCL_Integer_Literal *
TAO_ETCL_Component_Array::integer (void) const
{
  return this->integer_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Component_Array::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Special::TAO_ETCL_Special (int type)
  :  type_ (type)
{
}

ACE_INLINE int
TAO_ETCL_Special::type (void) const
{
  return this->type_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Component::TAO_ETCL_Component (TAO_ETCL_Constraint *identifier,
                                        TAO_ETCL_Constraint *component)
  :  component_ (component)
{
  this->identifier_ =
    ACE_dynamic_cast (TAO_ETCL_Identifier*, identifier);
}

ACE_INLINE TAO_ETCL_Identifier *
TAO_ETCL_Component::identifier (void) const
{
  return this->identifier_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Component::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Dot::TAO_ETCL_Dot (TAO_ETCL_Constraint *component)
  :  component_ (component)
{
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Dot::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Eval::TAO_ETCL_Eval (TAO_ETCL_Constraint *component)
  :  component_ (component)
{
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Eval::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Default::TAO_ETCL_Default (TAO_ETCL_Constraint *component)
  :  component_ (component)
{
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Default::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Exist::TAO_ETCL_Exist (TAO_ETCL_Constraint *component)
  :  component_ (component)
{
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Exist::component (void) const
{
  return this->component_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Unary_Expr::TAO_ETCL_Unary_Expr (int type,
                                          TAO_ETCL_Constraint *subexpr)
  :  type_ (type),
     subexpr_ (subexpr)
{
}

ACE_INLINE int
TAO_ETCL_Unary_Expr::type (void) const
{
  return this->type_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Unary_Expr::subexpr (void) const
{
  return this->subexpr_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Binary_Expr::TAO_ETCL_Binary_Expr (int type,
                                            TAO_ETCL_Constraint *lhs,
                                            TAO_ETCL_Constraint *rhs)
  :  type_ (type),
     lhs_ (lhs),
     rhs_ (rhs)
{
}

ACE_INLINE int
TAO_ETCL_Binary_Expr::type (void) const
{
  return this->type_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Binary_Expr::rhs (void) const
{
  return this->rhs_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Binary_Expr::lhs (void) const
{
  return this->lhs_;
}

// ****************************************************************

ACE_INLINE
TAO_ETCL_Preference::TAO_ETCL_Preference (int type,
                                          TAO_ETCL_Constraint *subexpr)
  :  type_ (type),
     subexpr_ (subexpr)
{
}

ACE_INLINE int
TAO_ETCL_Preference::type (void) const
{
  return this->type_;
}

ACE_INLINE TAO_ETCL_Constraint *
TAO_ETCL_Preference::subexpr (void) const
{
  return this->subexpr_;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -