Skip to content

Commit

Permalink
Non-unique class GenericEnum.
Browse files Browse the repository at this point in the history
  • Loading branch information
uberFoo committed Apr 17, 2024
1 parent 8086613 commit d920ce5
Show file tree
Hide file tree
Showing 14 changed files with 2,016 additions and 2,002 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sarzak"
version = "2.13.19"
version = "2.13.20"
edition = "2021"
authors = ["Keith T. Star <[email protected]>"]
categories = ["compilers", "memory-management"]
Expand Down
2 changes: 1 addition & 1 deletion models/lu_dog.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/v2/lu_dog/types/enum_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ impl EnumGeneric {
// {"magic":"","directive":{"Start":{"directive":"ignore-orig","tag":"enum_generic-struct-impl-new"}}}
/// Inter a new 'Enum Generic' in the store, and return it's `id`.
pub fn new(
hack: Uuid,
name: String,
woog_enum: &Rc<RefCell<Enumeration>>,
next: Option<&Rc<RefCell<EnumGeneric>>>,
store: &mut LuDogStore,
) -> Rc<RefCell<EnumGeneric>> {
let id = Uuid::new_v4();
let new = Rc::new(RefCell::new(EnumGeneric {
hack,
id,
name,
woog_enum: woog_enum.borrow().id,
Expand Down
800 changes: 400 additions & 400 deletions src/v2/lu_dog_ndrwlock_vec/store.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/v2/lu_dog_ndrwlock_vec/types/enum_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ impl EnumGeneric {
// {"magic":"","directive":{"Start":{"directive":"ignore-orig","tag":"enum_generic-struct-impl-new"}}}
/// Inter a new 'Enum Generic' in the store, and return it's `id`.
pub fn new(
hack: Uuid,
name: String,
woog_enum: &Arc<RwLock<Enumeration>>,
next: Option<&Arc<RwLock<EnumGeneric>>>,
store: &mut LuDogNdrwlockVecStore,
) -> Arc<RwLock<EnumGeneric>> {
store.inter_enum_generic(|id| {
Arc::new(RwLock::new(EnumGeneric {
hack,
id,
name: name.to_owned(),
woog_enum: woog_enum.read().unwrap().id,
Expand Down
800 changes: 400 additions & 400 deletions src/v2/lu_dog_pl_vec/store.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/v2/lu_dog_pl_vec/types/enum_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ impl EnumGeneric {
// {"magic":"","directive":{"Start":{"directive":"ignore-orig","tag":"enum_generic-struct-impl-new"}}}
/// Inter a new 'Enum Generic' in the store, and return it's `id`.
pub fn new(
hack: Uuid,
name: String,
woog_enum: &Arc<RwLock<Enumeration>>,
next: Option<&Arc<RwLock<EnumGeneric>>>,
store: &mut LuDogPlVecStore,
) -> Arc<RwLock<EnumGeneric>> {
store.inter_enum_generic(|id| {
Arc::new(RwLock::new(EnumGeneric {
hack,
id,
name: name.to_owned(),
woog_enum: woog_enum.read().id,
Expand Down
2 changes: 2 additions & 0 deletions src/v2/lu_dog_rwlock/types/enum_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ impl EnumGeneric {
// {"magic":"","directive":{"Start":{"directive":"ignore-orig","tag":"enum_generic-struct-impl-new"}}}
/// Inter a new 'Enum Generic' in the store, and return it's `id`.
pub fn new(
hack: Uuid,
name: String,
woog_enum: &Arc<RwLock<Enumeration>>,
next: Option<&Arc<RwLock<EnumGeneric>>>,
store: &mut LuDogRwlockStore,
) -> Arc<RwLock<EnumGeneric>> {
let id = Uuid::new_v4();
let new = Arc::new(RwLock::new(EnumGeneric {
hack,
id,
name,
woog_enum: woog_enum.read().unwrap().id,
Expand Down
Loading

0 comments on commit d920ce5

Please sign in to comment.