📄 primitiveset.cpp
字号:
/* Context : Matrix and Vector Operation Author : Frank Hoeppner, see also AUTHORS file Description : implementation of class module PrimitiveSet History : Comment : This file was generated automatically. DO NOT EDIT. Copyright : Copyright (C) 1999-2000 Frank Hoeppner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/#ifndef PrimitiveSet_SOURCE#define PrimitiveSet_SOURCE/* configuration include */#ifdef HAVE_CONFIG_H/*//FILETREE_IFDEF HAVE_CONFIG_H*/#include "config.h"/*//FILETREE_ENDIF*/#endif// necessary includes#include "PrimitiveSet.hpp"// data// implementationtemplate <class DATA>PrimitiveSet<DATA>::PrimitiveSet ( ) : m_specifier(NO_X) , m_value(0) { }template <class DATA>PrimitiveSet<DATA>::PrimitiveSet ( specifier_enum a_specifier, DATA a_value ) : m_specifier(a_specifier) , m_value(a_value) { }template <class DATA>void PrimitiveSet<DATA>::write ( ostream& os ) const { switch (m_specifier) { case 0 : break; // 000 case 1 : os << "(" << m_value; break; // 001 case 2 : os << "[" << m_value << "]"; break; // 010 case 3 : os << "[" << m_value; break; // 011 case 4 : os << m_value << ")"; break; // 100 case 5 : os << m_value << ") (" << m_value; break; // 101 case 6 : os << m_value << "]"; break; // 110 case 7 : break; // 111 } }// template instantiation#endif // PrimitiveSet_SOURCE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -