~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to nfem/basis/numbering.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-03-23 11:14:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110323111426-cjvhey7lxt6077ty
Tags: 5.93-1
* New upstream release (minor changes):
  - some extra warning message deleted in heap_allocator
  - graphic output with mayavi2 fixed
  - add doc refman in .info and .pdf format

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
public:
53
53
 
54
54
// typedefs:
55
 
 
56
 
    typedef size_t size_type;
 
55
    typedef numbering_rep                rep;
 
56
    typedef smart_pointer<numbering_rep> base;
 
57
    typedef size_t                       size_type;
57
58
 
58
59
// allocators:
59
60
 
85
86
        const geo_element&      K, 
86
87
        std::vector<size_type>& i_dof) const;
87
88
 
 
89
    virtual bool is_continuous() const;
 
90
    virtual bool is_discontinuous() const { return !is_continuous(); }
 
91
 
88
92
// i/o:
89
93
 
90
94
    void dump(std::ostream& out = std::cerr) const;
95
99
// -----------------------------------------------------------
96
100
inline
97
101
numbering::numbering(std::string name)
98
 
 : smart_pointer<numbering_rep> (numbering_rep::make_ptr(name))
 
102
 : base (rep::make_ptr(name))
99
103
{
100
104
}
101
105
inline
102
106
numbering::numbering (numbering_rep* ptr)
103
 
 : smart_pointer<numbering_rep> (ptr)
 
107
 : base (ptr)
104
108
{
105
109
}
106
110
inline
144
148
{
145
149
    return data().idof (mesh_n_geo, mesh_n_element, K, i_dof);
146
150
}
 
151
inline
 
152
bool
 
153
numbering::is_continuous () const   
 
154
{
 
155
    return data().is_continuous();
 
156
}
 
157
 
147
158
}// namespace rheolef
148
159
#endif // _RHEO_NUMBERING_H