++coding-style

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1365 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-06-21 10:39:05 +00:00
parent 127a25707f
commit 5effe564f0

View File

@ -16,10 +16,9 @@ namespace fail {
* *
* Lists the different register types. You need to expand this enumeration * Lists the different register types. You need to expand this enumeration
* to provide more detailed types for your concrete derived register classes * to provide more detailed types for your concrete derived register classes
* specific to a simulator. * specific to a simulator/architecture.
*/ */
enum RegisterType enum RegisterType {
{
RT_GP, //!< general purpose RT_GP, //!< general purpose
RT_PC, //!< program counter / instruction pointer RT_PC, //!< program counter / instruction pointer
RT_ST //!< status register RT_ST //!< status register
@ -31,8 +30,7 @@ enum RegisterType
* Represents the basic generic register class. A set of registers is composed * Represents the basic generic register class. A set of registers is composed
* of classes which had been derived from this class. * of classes which had been derived from this class.
*/ */
class Register class Register {
{
protected: protected:
RegisterType m_Type; //!< the type of this register RegisterType m_Type; //!< the type of this register
regwidth_t m_Width; //!< the register width regwidth_t m_Width; //!< the register width
@ -113,8 +111,7 @@ class Register
* enumeration \c RegisterType. (All registers within this set must be of the * enumeration \c RegisterType. (All registers within this set must be of the
* same register type.) The capacity of the set is managed automatically. * same register type.) The capacity of the set is managed automatically.
*/ */
class UniformRegisterSet class UniformRegisterSet {
{
private: private:
std::vector< Register* > m_Regs; //!< the unique set of registers std::vector< Register* > m_Regs; //!< the unique set of registers
RegisterType m_Type; //!< the overall type of this container (set) RegisterType m_Type; //!< the overall type of this container (set)
@ -180,8 +177,7 @@ class UniformRegisterSet
* Represents a complete set of (inhomogeneous) registers specific to a concrete * Represents a complete set of (inhomogeneous) registers specific to a concrete
* architecture, e.g. x86 or ARM. * architecture, e.g. x86 or ARM.
*/ */
class RegisterManager class RegisterManager {
{
protected: protected:
std::vector< Register* > m_Registers; std::vector< Register* > m_Registers;
//!< the managed set of homogeneous sets //!< the managed set of homogeneous sets