~ubuntu-branches/ubuntu/karmic/hypre/karmic

« back to all changes in this revision

Viewing changes to src/babel/bHYPREClient-CX/bHYPRE_MatrixVectorView.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2009-03-20 11:40:12 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090320114012-132h6ok9w2r6o609
Tags: 2.4.0b-2
Rebuild against new openmpi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// File:          bHYPRE_MatrixVectorView.hxx
3
3
// Symbol:        bHYPRE.MatrixVectorView-v1.0.0
4
4
// Symbol Type:   interface
5
 
// Babel Version: 1.0.0
 
5
// Babel Version: 1.0.4
6
6
// Description:   Client-side glue code for bHYPRE.MatrixVectorView
7
7
// 
8
8
// WARNING: Automatically generated; changes will be lost
92
92
    typedef struct bHYPRE_MatrixVectorView__sepv sepv_t;
93
93
 
94
94
    // default constructor
95
 
    MatrixVectorView() { }
 
95
    MatrixVectorView() { 
 
96
      bHYPRE_MatrixVectorView_IORCache = NULL;
 
97
    }
96
98
 
97
99
    // RMI connect
98
100
    static inline ::bHYPRE::MatrixVectorView _connect( /*in*/ const 
101
103
    }
102
104
 
103
105
    // RMI connect 2
104
 
    static ::bHYPRE::MatrixVectorView _connect( /*in*/ const std::string& url,
 
106
    static ::bHYPRE::MatrixVectorView _connect( /*in*/ const std::string& url, 
105
107
      /*in*/ const bool ar  );
106
108
 
107
109
    // default destructor
121
123
    // For internal use by Impls (fixes bug#275)
122
124
    MatrixVectorView ( MatrixVectorView::ior_t* ior, bool isWeak );
123
125
 
124
 
    ior_t* _get_ior() throw() { return reinterpret_cast< ior_t*>(d_self); }
125
 
 
126
 
    const ior_t* _get_ior() const throw () { return reinterpret_cast< 
127
 
      ior_t*>(d_self); }
128
 
 
129
 
    void _set_ior( ior_t* ptr ) throw () { d_self = reinterpret_cast< 
130
 
      void*>(ptr); }
 
126
    inline ior_t* _get_ior() const throw() {
 
127
      if(!bHYPRE_MatrixVectorView_IORCache) { 
 
128
        bHYPRE_MatrixVectorView_IORCache = ::bHYPRE::MatrixVectorView::_cast((
 
129
          void*)d_self);
 
130
        if (bHYPRE_MatrixVectorView_IORCache) {
 
131
          struct sidl_BaseInterface__object *throwaway_exception;
 
132
          (bHYPRE_MatrixVectorView_IORCache->d_epv->f_deleteRef)(
 
133
            bHYPRE_MatrixVectorView_IORCache->d_object, &throwaway_exception);  
 
134
        }  
 
135
      }
 
136
      return bHYPRE_MatrixVectorView_IORCache;
 
137
    }
 
138
 
 
139
    void _set_ior( ior_t* ptr ) throw () { 
 
140
      d_self = reinterpret_cast< void*>(ptr);
 
141
    }
131
142
 
132
143
    bool _is_nil() const throw () { return (d_self==0); }
133
144
 
184
195
  public:
185
196
    static const ext_t * _get_ext() throw ( ::sidl::NullIORException );
186
197
 
 
198
 
 
199
    //////////////////////////////////////////////////
 
200
    // 
 
201
    // Locally Cached IOR pointer
 
202
    // 
 
203
 
 
204
  protected:
 
205
    mutable ior_t* bHYPRE_MatrixVectorView_IORCache;
187
206
  }; // end class MatrixVectorView
188
207
} // end namespace bHYPRE
189
208
 
190
209
extern "C" {
191
210
 
192
211
 
193
 
  #pragma weak bHYPRE_MatrixVectorView__connectI
 
212
#pragma weak bHYPRE_MatrixVectorView__connectI
194
213
 
195
 
  #pragma weak bHYPRE_MatrixVectorView__rmicast
 
214
#pragma weak bHYPRE_MatrixVectorView__rmicast
196
215
 
197
216
  /**
198
217
   * Cast method for interface and class type conversions.
205
224
   * RMI connector function for the class. (no addref)
206
225
   */
207
226
  struct bHYPRE_MatrixVectorView__object*
208
 
  bHYPRE_MatrixVectorView__connectI(const char * url, sidl_bool ar,
209
 
    struct sidl_BaseInterface__object **_ex);
 
227
  bHYPRE_MatrixVectorView__connectI(const char * url, sidl_bool ar, struct 
 
228
    sidl_BaseInterface__object **_ex);
210
229
 
211
230
 
212
231
} // end extern "C"